<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><?php if(isset($SEO['title']) && !empty($SEO['title'])) { ?><?php echo $SEO['title'];?><?php } ?><?php echo $SEO['site_title'];?></title>
<meta name="keywords" content="<?php echo $SEO['keyword'];?>">
<meta name="description" content="<?php echo $SEO['description'];?>">
<link href="<?php echo CSS_PATH;?>reset.css" rel="stylesheet" type="text/css" />
<link href="<?php echo CSS_PATH;?>style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo CSS_PATH;?>default_blue.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo JS_PATH;?>jquery.min.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>jquery.sgallery.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>search_common.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>cookie.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>language.js"></script>
<link href="<?php echo CSS_PATH;?>dialog.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo JS_PATH;?>dialog.js"></script>
<script type="text/javascript">
	$(function(){
		$(".newestTit a:not(.print)").each(function(index){
			$(this).mouseover(function(){
				$(".newestTit a").removeClass("hover");
				$(".newestTit a:eq("+index+")").addClass("hover");
				$(".content").addClass("hide");
				$(".content:eq("+index+")").removeClass("hide");
			})
		})
		$(".subMenu").children().click(function(){
			$(this).find(".subNav").show();
		});
	})
</script>
</head>
<body>
	<!--header-->
	<div id="header">
    	<div class="headerTop">
        	<div class="logo"><a href="<?php echo siteurl($siteid);?>/"><img src="<?php echo IMG_PATH;?>zjs/logo.jpg" /></a></div>
        	<div class="logo_right">
				<DIV class="login zit">
				<?php if($_username) { ?><?php echo L('hellow');?> <?php echo get_nickname();?>,
				，欢迎登陆！<SPAN class=logoin3><a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=account_manage_info&t=<?php echo $siteid;?>" target="_blank"><?php echo L('member_center');?></a></SPAN><SPAN class=logoin4><A href="#">反馈意见</A> <a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=logout&forward=<?php echo urlencode($_GET['forward']);?>&siteid=<?php echo $siteid;?>" target="_top">
				 <?php echo L('logout');?></a></SPAN>
				 <?php } else { ?>
		
<form  method="post"  action="<?php echo APP_PATH;?>index.php?m=member&c=index&a=login&siteid=1" id="loginform" >
<input type="hidden" name="forward" id="forward" value="<?php echo APP_PATH;?>">
<input type="hidden" name="dosubmit" id="dosubmit" value="<?php echo L('login');?>">
<input type="hidden" name="dialogt" id="dialogt" value="<?php echo L('login');?>">
            	<div class="login">
                        
<span style=" float:left;"><input type="text" style="width:150px;" name="username" id="username" />
<input type="password" style="width:110px;" name="password"> </span>
<input type="submit" value="<?php echo L('login');?>" class="btn"  name="dosubmit" id="dosubmit" onClick="ajax_login()" style=" float:left;"/>
<span style=" float:left;"><a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=register&siteid=<?php echo $siteid;?>" target="_blank"><?php echo L('register');?>
</a>
<a href="index.php?m=member&c=index&a=public_forget_password&siteid=<?php echo $siteid;?>" class="blue" target="_blank"><?php echo L('forgetpassword');?>
</a></span>
</div>
</form>
<?php } ?>
<div class="language" id="language">
            	<a href="javaScript:void(0)" title="en">English</a><a href="javaScript:void(0)" class="none" title="zh-cn">中文</a>
 </div>
 </div>
 </div>
    </div>
<script type="text/javascript">
function ajax_login() {
	$("#loginform").submit();
	
}
</script>
        <div class="header_center">
             <map>
		    	<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=a4c031d7158f88962aa3fd3aa0252124&action=category&catid=0&num=25&siteid=%24siteid&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'0','siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'25',));}?>
				<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
						<a href="<?php echo $r['url'];?>"><span><?php echo $r['catname'];?></span></a>
					<?php $n++;}unset($n); ?>
		        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
				<?php echo runhook('glogal_menu')?>
        	</map>
        </div>
        <div class="search">
        	<div class="search_top"><span><?php echo L('key_word');?></span><span><?php echo L('main_classification');?></span ><span ><?php echo L('secondary_classification');?></span><span><?php echo L('reclassify');?></span></div>
            <form action="<?php echo APP_PATH;?>index.php" method="get" target="_blank">
               <input type="hidden" name="m" value="content"/>
				<input type="hidden" name="c" value="search"/>
				<input type="hidden" name="info[typeid]" value="<?php echo $typeid;?>" id="typeid"/>
				<input type="hidden" name="info[siteid]" value="<?php echo $siteid;?>" id="siteid"/>
				<input type=hidden name="catid" 	value="" id="catid" />
				<input type=hidden name="info[catid]" 	value="" id="catidinfo" />
				<input name=dosubmit value=1 type=hidden>
            	<div class="search_bottom">
                	<input id=keywords class="input-text search-text" name=info[keywords] type="text"/>
                	<select class="J_cate_select"  style="display:none">
					<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=a9cb603bc7ef2adfee9195e9ea1f9155&action=category&catid=0&num=25&type=1&siteid=%24siteid&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'0','type'=>'1','siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'25',));}?>
			        <?php $n=1;if(is_array($data)) foreach($data AS $v) { ?>
			           <?php if($v[type]==0) { ?>
                    	<option value="<?php echo $v['catid'];?>"><?php echo $v['catname'];?></option>
                    	<?php } ?>
					<?php $n++;}unset($n); ?>
					</select>
<select class="J_cate_select">
					</select>
					<select class="J_cate_select">
					</select>					<select class="J_cate_select">					</select>
                    <input type="submit" value="<?php echo L('search');?>" class="sub"/>
                    <a href="<?php echo APP_PATH;?>index.php?m=formguide&c=index&a=show&formid=16&siteid=1&pc_hash=NqIu9G"><?php echo L('Not_found');?></a>
                </div>
            </form>
        </div>
    </div>
    <script>
   $(function(){
    	//加载联动栏目
    	$('.J_cate_select').die('change').live('change', function(){
            var _this = $(this),
            _pid = _this.val();
            var _html = "";
            _this.nextAll(".J_cate_select").empty();
            if(_pid){
	            $.getJSON("<?php echo APP_PATH;?>?m=search&c=index&a=select_option",{parntid:_pid},function(data){
	            	if(data!=null){
	                     $.each(data, function (i, o) {
	                         $('<option value='+o.catid+'>'+o.catname+'</option>').appendTo(_this.next(".J_cate_select"));
	           			});
	            		 test(_this.next('.J_cate_select'));
	            	}
	            })
	            $("#catid,#catidinfo").val(_pid);
           }
		});
        test($('.J_cate_select'));

     })
       function test(k){
           var _this = $(k),
           _pid = _this.val();
           var _html = "";
           _this.nextAll(".J_cate_select").empty();
           if(_pid){
	            $.getJSON("<?php echo APP_PATH;?>?m=search&c=index&a=select_option",{parntid:_pid},function(data){
	            	if(data!=null){
	            		 var _childs = $('<select class="J_cate_select mr10" data-pid="'+_pid+'"></select>')
	            		 $.each(data, function (i, o) {
	            				            				 
	                         $('<option value='+o.catid+'>'+o.catname+'</option>').appendTo(_this.next('.J_cate_select'));
	           			});
	            		 //_childs.insertAfter(_this);
	            		 test(_this.next('.J_cate_select')); 
	            		 //setspanDisplay($('.J_cate_select').length);
	            	}
                   
	            })
	            
	            $("#catid,#catidinfo").val(_pid);
          }
	}
    
	            

    </script>
    
 <div  style="clear:both"></div>  